<template>
  <div id="app">
    <transition>
      <router-view />
    </transition>
  </div>
</template>
<script>
import { ref, onMounted } from 'vue'
export default {
  name: 'App',
  setup() {
    const transitionName = ref('van-slide-right')

    onMounted(() => {
      // this.$navigation.on('forward', () => {
      //   transitionName.value = 'van-slide-right'
      // })
      // this.$navigation.on('back', () => {
      //   transitionName.value = 'van-slide-left'
      // })
    })
    return { transitionName }
  }
}
</script>
<style lang="stylus" scoped>
#app {
  height: 100vh;
  font-family: PingFangSC-Regular;
  background-color: #f1f3f5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
</style>
